package beans;

public class Warehouse {
    private int id; // 仓库中商品的唯一标识
    private String productName; // 商品名称
    private int count; // 商品数量
    private double price; // 商品价格
    private int size; // 商品尺码
    private User merchant; // 商家
    private String producer; // 生产商

    public Warehouse() {
    }

    public Warehouse(int id, String productName, int count, double price, int size, User merchant, String producer) {
        this.id = id;
        this.productName = productName;
        this.count = count;
        this.price = price;
        this.size = size;
        this.merchant = merchant;
        this.producer = producer;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public User getMerchant() {
        return merchant;
    }

    public void setMerchant(User merchant) {
        this.merchant = merchant;
    }

    public String getProducer() {
        return producer;
    }

    public void setProducer(String producer) {
        this.producer = producer;
    }

}

